package cn.young.javalearning.designpattern.factorypattern.bean.f_bean;

import cn.young.javalearning.designpattern.factorypattern.f_abstractfactory.FruitI;

public class Fruit implements FruitI {
    private String size;
    private String color;

    @Override
    public String toString() {
        return "Fruit{" +
                "size='" + size + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    public String getSize() {
        return size;
    }

    public Fruit setSize(String size) {
        this.size = size;
        return this;
    }

    public String getColor() {
        return color;
    }

    public Fruit setColor(String color) {
        this.color = color;
        return this;
    }

    @Override
    public void pickFruit() {
        System.out.println("开始摘水果");
    }
}
